import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from "@angular/router";
import { NgZorroIopModule } from 'ng-zorro-iop';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgxEchartsModule } from 'ngx-echarts';
import { MonacoEditorModule } from "ngx-monaco-editor";
import { MonitorChartComponent } from "./monitor-chart/monitor-chart.component";
import { FcsConfigComponent } from './fcs-config/fcs-config.component';
import { TriggerTableComponent } from './trigger-table/trigger-table.component';
import { FcsTableComponent } from './fcs-table/fcs-table.component';
import { FcsPublishComponent } from './fcs-publish/fcs-publish.component';
import { TriggerCreateComponent } from "./trigger-create/trigger-create.component";
import { EnvironmentVariablesComponent } from "./environment-variables/environment-variables.component";
import { FcsCreateTriggerComponent } from "./fcs-create-trigger/fcs-create-trigger.component";
import { NzSwitchModule } from 'ng-zorro-antd/switch';
import { ClipboardModule } from 'ngx-clipboard';
import { from } from 'rxjs';
import { InterceptorProvider } from '@global/shared';


@NgModule({
  imports: [
    CommonModule,
    NgZorroAntdModule,
    RouterModule,
    FormsModule,
    ReactiveFormsModule,
    NgZorroIopModule,
    NgxEchartsModule,
    MonacoEditorModule,
    NzSwitchModule,
    ClipboardModule
  ],
  declarations: [
    MonitorChartComponent,
    FcsConfigComponent,
    TriggerTableComponent,
    FcsTableComponent,
    TriggerCreateComponent,
    FcsPublishComponent,
    EnvironmentVariablesComponent,
    FcsCreateTriggerComponent
  ],
  exports: [
    MonitorChartComponent,
    FcsConfigComponent,
    TriggerTableComponent,
    FcsTableComponent,
    TriggerCreateComponent,
    FcsPublishComponent,
    EnvironmentVariablesComponent,
    FcsCreateTriggerComponent
  ],
  entryComponents: [
    FcsConfigComponent,
    TriggerCreateComponent,
    FcsPublishComponent,
    FcsCreateTriggerComponent
  ],
  providers:[
    InterceptorProvider
  ]
})
export class SharedComponentModule { }
